import { createSlice } from "@reduxjs/toolkit";

export const xqySlice = createSlice({
  name: "user",
  initialState: {
    shuju: {},
  },
  reducers: {
    cunshuju(state, action) {
      state.shuju = action.payload;
      console.log(action.payload)
    },
  },
});

// Action creators are generated for each case reducer function
export const { cunshuju } = xqySlice.actions;
export default xqySlice.reducer;
